package com.snowball.demo.mvc.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.Version;

import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author genezhao
 * @since 2018-07-23
 */
@Data
public class User implements Serializable {

        private static final long serialVersionUID = 1L;

        @TableId(type = IdType.UUID)
        private String id;

        private Long version;
        private String email;
        private String nickName;
        private String passWord;
        private String userName;
        private String salt;
        private String mobile;
        @TableField(value = "reg_time", fill = FieldFill.INSERT)
        private Long regTime;

        @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
        private Long updateTime;

        @TableField(value = "row_status", fill = FieldFill.INSERT)
        private String rowStatus;
}